package com.simba.server.components;

public class SortCommonDefines
{
	public static final String BARCODE_DEF_NO_READ = "NoRead";

	public static final byte COMMAND_0X04_TEST_SCANNED_BARCODE_REQUEST = 0x04;
	public static final byte COMMAND_0X70_WHEEL_KEEP_ALIVE = 0x70;
	public static final byte COMMAND_0X02_WHEEL_PACKET_ON = 0x02;
	public static final byte COMMAND_0X05_WHEEL_PACKET_OFF = 0x05;
	public static final byte COMMAND_0X07_WHEEL_SLOT_PACK = 0x07;
	public static final byte COMMAND_0X08_WHEEL_SORT_SLOT_PACK = 0x08;

	public static final int ERROR_CODE_0_SUCCESS = 0;
	public static final int ERROR_CODE_1_NO_SORT_INFO = 1;
	public static final int ERROR_CODE_10_POST_OTHER_ERROR = 10;
	public static final int ERROR_CODE_11_POST_FAIL_SLOT_ERROR = 11;
	public static final int ERROR_CODE_12_POST_UNKNOWN_ERROR = 12;
	public static final int ERROR_CODE_13_POST_PARAMS_ERROR = 13;
	public static final int ERROR_CODE_2_NO_SORT_PLAN = 2;
	public static final int ERROR_CODE_3_NO_READ_BARCODE = 3;
	public static final int ERROR_CODE_4_MULTI_BARCODE = 4;
	public static final int ERROR_CODE_5_MAX_CIRCLE = 5;
	public static final int ERROR_CODE_6_LOST_PACKET = 6;
	public static final int ERROR_CODE_7_INVALID_BARCODE = 7;
	public static final int ERROR_CODE_8_IBB_ERROR = 8;
	public static final int ERROR_CODE_9_POST_INTER_ERROR = 9;

	public static final byte[] ERROR_MESSAGE = {(byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff};

	public static final String JSON_SERVICE_NAME = "ServiceName";
	public static final int PROTOCOL_COMMAND_POSITION = 2;

	public static final byte[] REPLY_HEADER = {0x03, 0x01};
	public static final byte[] REPLY_END = {0x0D, 0x0A};

	public static final int SLOT_SOFT_LOCK_FLAG = 1;
	public static final int SLOT_SOFT_UNLOCK_FLAG = 0;

	public static final int TIME_STAMP_LENGTH_LONG = 8;

	public static final int UPLOAD_ERROR_FLAG=0;
	public static final int UPLOAD_SUCCESS_FLAG=1;
	public static final int UPLOAD_DEFAULT_FLAG=-1;
	public static final int UPLOAD_NO_UPLOAD_FLAG =-2;
	public static final int UPLOAD_ONLY_PACK_FLAG=-3;

}
